<%@page import="java.util.List"%>
<%@page import="model.CategoryImp"%>
<%@page import="model.entity.Category"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
  



<div class="container_12">
  
	<h2>Parent Category</h2>   
 <p class="message1">
<%
                            String message = request.getAttribute("messageeditcat")==null ? "":request.getAttribute("messageeditcat").toString();
                        out.println(message);
%>
                    </p>        
                 <p class="message1">
<%
                            String message1 = request.getAttribute("messagecreate")==null ? "":request.getAttribute("messagecreate").toString();
                        out.println(message1);
%>
                 </p>
            
    <div class="clearfix">&nbsp;</div>
 
 

      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="pager">
	<tbody>
            <tr class="even">
            <th width="10%" scope="col">Id</th>
            <th width="80%" scope="col">Name</th>
            <th width="10%" scope="col">Option</th>  
        </tr>
            <%
        CategoryImp cim = new CategoryImp();
        List<Category> lcat = cim.ParentCategory();      
        for(Category dm : lcat)  
                       {
%>
		<tr>
			<td scope="col"><%= dm.getCategoryid() %></td>
                        <td scope="col"><%= dm.getCategoryname() %></td>
			<td scope="col">
                
               <form action="<c:url value="admin/category/delete"/>" method="POST">
                
                  
                   <a href="<c:url value="<%= "/admin/category/edit/" + dm.getCategoryid() %>">
                         
                      
                      </c:url>"/><img title="Edit" src="<c:url value="/views/admin/images/icondock/page_white_edit.png"/>"/></a>
                  </form>
              
                
            </td>
			
		</tr>
<%}%>	
		
	</tbody>
</table>
           
           
            

           
           <div class="clearfix">&nbsp;</div>
           
           
              
          
</div>